package com.vil.service;

import com.vil.common.ServerResponse;
import com.vil.entity.Admin;
import com.vil.entity.Authority;
import com.vil.entity.Function;

import java.util.List;

public interface FunctionService {
    //根据角色和父id 获得1级菜单
    public List<Function> getMainFunctionList(Authority auth);

    //获得2级菜单
    public List<Function> getSubFunctionList(Function fun);

    //动态增加
    ServerResponse insertSelective(Function record);

    //根据主键删除
    ServerResponse deleteByPrimaryKey(Long id);

    //根据主键动态修改
    ServerResponse updateByPrimaryKeySelective(Function record);

    //根据ID查询
    ServerResponse getById(Long id);

    //批量删除
    ServerResponse deleteMany(Long[] ids);

    //多条件分页查询
    ServerResponse getListByManyConditions(Integer pageIndex,Integer pageSize,Function record);
}
